Merge "Send the full title to the 'nogomatch' debug log group"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 18 Mar 2014 11:40:21 +0000 (11:40 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 18 Mar 2014 11:40:21 +0000 (11:40 +0000)
1  2 
includes/specials/SpecialSearch.php

@@@ -198,7 -198,7 +198,7 @@@ class SpecialSearch extends SpecialPag
                if ( !is_null( $t ) ) {
                        global $wgGoToEdit;
                        wfRunHooks( 'SpecialSearchNogomatch', array( &$t ) );
-                       wfDebugLog( 'nogomatch', $t->getText(), 'private' );
+                       wfDebugLog( 'nogomatch', $t->getFullText(), 'private' );
  
                        # If the feature is enabled, go straight to the edit page
                        if ( $wgGoToEdit ) {
  
                $t = $result->getTitle();
  
 -              $titleSnippet = $result->getTitleSnippet( $terms );
 +              $titleSnippet = $result->getTitleSnippet();
  
                if ( $titleSnippet == '' ) {
                        $titleSnippet = null;
  
                // format redirect if any
                $redirectTitle = $result->getRedirectTitle();
 -              $redirectText = $result->getRedirectSnippet( $terms );
 +              $redirectText = $result->getRedirectSnippet();
                $redirect = '';
                if ( !is_null( $redirectTitle ) ) {
                        if ( $redirectText == '' ) {